package com.ws.system.dict.service.impl;

import com.ws.system.dict.entity.SystemDictType;
import com.ws.system.dict.mapper.SystemDictTypeMapper;
import com.ws.system.dict.service.ISystemDictTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.List;
import com.ws.common.utils.PageUtils;

/**
 * <p>
 * 字典类型 服务实现类
 * </p>
 *
 * @author weifucheng
 * @since 2019-11-26
 */
@Service
public class SystemDictTypeServiceImpl extends ServiceImpl<SystemDictTypeMapper, SystemDictType> implements ISystemDictTypeService {

    @Override
    public Page<SystemDictType> list(SystemDictType systemDictType, Integer current, Integer size) {
        Page<SystemDictType> page= PageUtils.newPage(current, size);
        page.setRecords(baseMapper.listByParam(page,systemDictType));
        return page;
    }
}
